﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 多态2
{
    class Circle:Shape
    {
        protected double radius;
        public double Radius { get => radius; set => radius = value; }
        public Circle(double radius,string color):base (color)
        {
            this.radius = radius;
        }
        public override void GetArea()
        {
            Console.WriteLine("{0}*{1}*{2}={3}",3.14,radius,radius,3.14*radius*radius);
            Console.WriteLine("颜色为：" + color);
        }

    }
}
